package com.zhiyou100.day1029springbooot.mapper;

import com.zhiyou100.day1029springbooot.pojo.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

@Mapper
public interface ITeacherMapper {

    public List<Teacher> queryAll();
    public  void  add(Teacher teacher);
    public void deleteById(int id);
    Teacher findById(int id);
    int update(Teacher teacher);
}
